<!--
 * @Description: 
 * @Author: mxy
 * @Date: 2022-12-04 20:45:08
 * @LastEditors: mxy
 * @LastEditTime: 2022-12-04 21:20:16
-->
<template>
  <div>
    <h2>MyMovie</h2>
    <p>你正在观看的是{{ $route.params.name }},id是{{ $route.params.id }}</p>
    <button @click="$router.go(-1)">跳转到上一页</button>
    <button @click="$router.push('/home')">跳转到首页</button>
  </div>
</template>

<script>
export default {};
</script>

<style scoped>
div {
  background-color: rgb(97, 47, 55);
}
p {
  color: aliceblue;
}
</style>
